package homework;

/**
 * @Author Stringzhua
 * @Date 2024/2/29 21:35
 * description:代码阅读题
 * 输出为?
 * result:
 */
public class homework10 {
    public static void main(String[] args) {
        Demo d1 = new Demo();
        Demo d2 = d1;
        d2.m();
        System.out.println("d1 = " + d1.i);
        System.out.println("d2 = " + d2.i);
    }
}

class Demo {
    int i = 100;
    public void m() {
        int j = i++;
        System.out.println("i = " + i);
        System.out.println("j = " + j);
    }
}